package com.dubito.noteapp.domain.usecase

import com.dubito.noteapp.data.database.repository.NoteRepository
import com.dubito.noteapp.domain.model.Note

/**
 * author: LiLiang
 * createTime: 2022/10/7-16:29
 * remark:
 **/
class DeleteNote(private val repository: NoteRepository) {

    suspend operator fun invoke(note: Note) {
        repository.deleteNote(note)
    }
}